<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<h:body>
<h:form>
<h:outputText value="Cadastrar Cliente"></h:outputText>
<br/><br/>
<h:outputText value="Nome: " ></h:outputText><br/>
<h:inputText id="nome" value="#{cliBean.cliente.nome}"  required="true" 
requiredMessage="Preencha este campo." validatorMessage="Preencha no minimo 6 chars.">
<f:validateLength minimum="6"></f:validateLength>
</h:inputText>
&nbsp;<h:message for="nome"></h:message>
<br/><br/>
<h:outputText value="Email"></h:outputText><br/>
<h:inputText id="email" value="#{cliBean.cliente.email}" required="true" requiredMessage="Preencha este campo."></h:inputText>
&nbsp; <h:message for="email"></h:message>
<br/><br/>
<h:outputText value="Idade"></h:outputText><br/>
<h:inputText id="idade" value="#{cliBean.cliente.idade}"></h:inputText>
<br/><br/>
<h:commandButton type="submit" value="Confirmar" action="#{cliBean.addUser}"></h:commandButton>
<h:commandButton type="reset" value="Cancelar"></h:commandButton>
</h:form>
</h:body>
</html>